<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>菜单管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript" src="${ctxStatic}/modules/sys/menu.js"></script>
</head>
<body>

	<table id="grid"></table>
	<div id="toolbar">
		<shiro:hasPermission name="sys:menu:edit">
		<table cellspacing="0" cellpadding="0">
			<tr>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-add" onclick="sys.menu.showForm()">添加</a></td>
				<td><div class="datagrid-btn-separator"></div></td>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-edit" onclick="sys.menu.showEditForm()">修改</a></td>
				<td><div class="datagrid-btn-separator"></div></td>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-remove" onclick="sys.menu.remove()">删除</a></td>
			</tr>
		</table>
		</shiro:hasPermission>
	</div>

	<div id="fmDlg" class="easyui-dialog" title="菜单信息" modal="true" width="500" height="320" buttons="#dlg-buttons" closed="true">
		<form id="fm" style="padding: 15px;">
			<input type="hidden" name="id" id="id" />
			<table>
				<tr height="30">
					<td width="60" align="right">菜单名称</td>
					<td colspan="3"><input class="easyui-textbox" style="width:365px;" id="name" name="name" /></td>
				</tr>
				<tr height="30">
					<td width="60" align="right">链接</td>
					<td colspan="3"><input class="easyui-textbox" style="width:365px;" id="href" name="href" /></td>
				</tr>
				<tr height="30">
					<td align="right">上级菜单</td>
					<td colspan="3"><input class="easyui-combotree" style="width:365px;" id="parentId" name="parentId" /></td>
				</tr>
				<tr height="30">
					<td align="right">图标</td>
					<td><input class="easyui-textbox" style="width:150px;" id="icon" name="icon" /></td>
					<td align="right" width="60">序号</td>
					<td><input class="easyui-numberspinner" style="width:150px;" id="sort" name="sort" /></td>
				</tr>
				<tr height="30">
					<td align="right">是否显示</td>
					<td><input class="easyui-combobox" style="width:150px;" id="isShow" name="isShow" /></td>
					<td align="right">是否按钮</td>
					<td><input class="easyui-combobox" style="width:150px;" id="isButton" name="isButton" /></td>
				</tr>
				<tr height="30">
					<td align="right">权限标识</td>
					<td colspan="3"><input class="easyui-textbox" style="width:365px;" id="permission" name="permission" /></td>
				</tr>
			</table>
		</form>
	</div>
	<div id="dlg-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-ok" onclick="sys.menu.saveOrupdate()">确定</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="$('#fmDlg').dialog('close')">取消</a> 
	</div>

</body>
</html>